{include file='yxworker/w_head'}

    <header class="i_header">
        <div class="s_head" style=" overflow: hidden; ">
            <img src="{$fans['avatar']}">
        </div>
        <h3>{$shenfen}【{$myworker['username']}】</h3>
        <h3>{php echo empty($shopname)?$theme['jubf']:$shopname;}{php echo empty($teamname)?'':" - ".$teamname;}</h3>
    </header> 

    <div class="s_menu ui-flex ui-cont-sa">
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_06.png"></dt>
                <dd>
                    <p>已支付</p>
                    <p>{$paycounttoday}/{$paycount}</p>
                </dd>
            </dl>
        </a>
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_04.png"></dt>
                <dd>
                    <p>未支付</p>
                    <p>{$unpaidcounttoday}/{$unpaidcount}</p>
                </dd>
            </dl>
        </a>
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_08.png"></dt>
                <dd>
                    <p>直销</p>
                    <p>{$directcounttoday}/{$directcount}</p>
                </dd>
            </dl>
        </a>
        {if $myworker['level'] != '3'}
        <a href="javascript:;">
            <dl>
                <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_10.png"></dt>
                <dd>
                    <p>{php echo $myworker['level'] == '2'?'公司':'全部';}</p>
                    <p>{$teampaycounttoday}/{$teampaycount}</p>
                </dd>
            </dl>
        </a>
        {/if}
    </div>

    <div class="s_items s_bg">
        <div class="s_title">
            <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png"> 我的日报
        </div>
        <table class="s_table">
            <thead>
                <tr>
                    <td style="width: 2%;"></td>
                    <td>日期</td>
                    <td style="color: #198bcb">新粉丝</td>
                    <td>转发</td>
                    <td style="color: #198bcb">浏览量</td>
                    <td>直销</td>
                    <td style="color: #198bcb">成交</td>
                    {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                    <td>线下</td>
                    {/if}
                    <td style="color: #198bcb">红包</td>
                    <td style="width: 2%;"></td>
                </tr>
            </thead>
            <tbody>
                {loop $myreport $item}
                    <tr>
                        <td></td>
                        <td>{php echo date("m-d",strtotime($item['riqi']));}</td>
                        <td style="color: #198bcb">{$item['newfans']}</td>
                        <td>{$item['forward']}</td>
                        <td style="color: #198bcb">{$item['scansum']}</td>
                        <td>{$item['recordzx']}</td>
                        <td style="color: #198bcb">{$item['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$item['recordxx']}</td>
                        {/if}
                        <td style="color: #198bcb">{$item['comm']}</td>
                        <td></td>
                    </tr>
                {/loop}
            </tbody>
        </table>
    </div>

    {if $myworker['level'] != '3' || ($myworker['level'] == '3' && $config['isreport']==1)}
    <div class="s_items s_bg">
        <div class="s_title">
            <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png"> {php echo empty($shopname)?'':$shopname ." - ";}{php echo empty($teamname)?'':$teamname ." - ";}团队日报
        </div>
        <table class="s_table">
            <thead>
                <tr>
                    <td style="width: 2%;"></td>
                    <td>日期</td>
                    <td style="color: #198bcb">新粉丝</td>
                    <td>转发</td>
                    <td style="color: #198bcb">浏览量</td>
                    <td>直销</td>
                    <td style="color: #198bcb">成交</td>
                    {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                    <td>线下</td>
                    {/if}
                    <td style="width: 2%;"></td>
                </tr>
            </thead>
            <tbody>
                {loop $myteam $item}
                    <tr>
                        <td></td>
                        <td>{php echo date("m-d",strtotime($item['riqi']));}</td>
                        <td style="color: #198bcb">{$item['newfans']}</td>
                        <td>{$item['forward']}</td>
                        <td style="color: #198bcb">{$item['scansum']}</td>
                        <td>{$item['recordzx']}</td>
                        <td style="color: #198bcb">{$item['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$item['recordxx']}</td>
                        {/if}
                        <td></td>
                    </tr>
                {/loop}
            </tbody>
        </table>
    </div>


    <div class="s_items s_bg">
        <div class="s_title">
            <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png"> {php echo empty($shopname)?'':$shopname ." - ";}公司日报{if !empty($notworker)}【{$notworker}个定单无客服】{/if}
        </div>
        <table class="s_table">
            <thead>
                <tr>
                    <td style="width: 2%;"></td>
                    <td>日期</td>
                    <td style="color: #198bcb">新粉丝</td>
                    <td>转发</td>
                    <td style="color: #198bcb">浏览量</td>
                    <td>直销</td>
                    <td style="color: #198bcb">成交</td>
                    {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                    <td>线下</td>
                    {/if}
                    <td style="width: 2%;"></td>
                </tr>
            </thead>
            <tbody>
                {loop $mycompany $item}
                    <tr>
                        <td></td>
                        <td>{php echo date("m-d",strtotime($item['riqi']));}</td>
                        <td style="color: #198bcb">{$item['newfans']}</td>
                        <td>{$item['forward']}</td>
                        <td style="color: #198bcb">{$item['scansum']}</td>
                        <td>{$item['recordzx']}</td>
                        <td style="color: #198bcb">{$item['record']}</td>
                        {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
                        <td>{$item['recordxx']}</td>
                        {/if}
                        <td></td>
                    </tr>
                {/loop}
            </tbody>
        </table>
    </div>
    {/if}
    {if $config['isxianxia']==1 || $config['isshowxianxia']==1}
        <table class="s_table">
            <thead>
                <tr >
                    <td style="background:#f8f8f8;  text-align: center;line-height: 0.5rem;">
                    所有统计数不包含‘线下录入’的定单。
                    </td>
                </tr>
            </thead>
        </table>
    {/if}
{include file='yxworker/w_foot'}